<?php $this->load->view('left_side.php'); ?>

<div class="middle-contenter">
    <div class='dashboard-contenter-header'>
        <a style='text-decoration: none;' href="<?php echo base_url(); ?>index.php/site/members_area/">Home &gt; </a>
        Store
    </div>
<center>
<?php 
    
    $vendor = array(
                'name' => 'vendor',
                'value' => '',
                'style' => '', 
                );
    
    $category = array(
                'name' => 'category',
                'value' => '',
                );
    
    $productmodel = array(
                'name' => 'productmodel',
                );

    $submit = array(
                'name' => 'submit',
                'value' => 'Submit',
                );
    
    echo form_open('vendor/add_product_db');            
    
    echo '<table>';

    echo '<tr><td>Vendor</td><td><select name="vendor">';
    foreach($vendorlist as $item)
    {
        echo "<option value='". $item->cs_vendor_id ."'>". $item->cs_vendor_name ."</option>";
    }
    echo '</select></td></tr>';

    echo '<tr><td>Category</td><td><select name="category">';
    foreach($catlist as $item)
    {
        echo "<option value='". $item->cs_category_id ."'>". $item->cs_category_name ."</option>";
    }
    echo '</select></td></tr>';
    
    echo '<tr><td>Model Name</td><td>'. form_input($productmodel) . '</td></tr>';
    echo '<tr><td colspan="2">'. form_submit($submit) .'</td></tr>';
    echo '</table>';
?>
    </form>
</center>

</div>